<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对话框</title>
    <script type="text/javascript">
        confirm("您确认要执行这个操作吗？");
        alert("您成功执行了这个操作")
    </script>
</head>
<body>

</body>
</html>